<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改来源任务信息')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-taskinfo-edit" th:object="${sourceTaskInfo}">
            <input name="id" th:field="*{id}" type="hidden">
<!--            <div class="form-group">    -->
<!--                <label class="col-sm-3 control-label is-required">来源ID：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="sourceId" th:field="*{sourceId}" readonly class="form-control" type="text" required>-->
<!--                </div>-->
<!--            </div>-->
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">接收的推送城市信息：</label>
                <div class="col-sm-8">
                    <input name="inCityArray" th:field="*{inCityArray}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">极准价格：</label>
                <div class="col-sm-8">
                    <input name="baseAmount" th:field="*{baseAmount}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">价格溢价率：</label>
                <div class="col-sm-8">
                    <input name="amountRate" th:field="*{amountRate}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">最小年龄：</label>
                <div class="col-sm-8">
                    <input name="minAge" th:field="*{minAge}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">最大年龄：</label>
                <div class="col-sm-8">
                    <input name="maxAge" th:field="*{maxAge}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label is-required">芝麻分：</label>
                <div class="col-sm-8">
                    <input name="zhima" th:field="*{zhima}"  class="form-control" type="text" required>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "source/taskinfo";
        $("#form-taskinfo-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-taskinfo-edit').serialize());
            }
        }
    </script>
</body>
</html>